//
//  ViewController.m
//  FuXi
//
//  Created by 钟纪旺 on 16/4/22.
//  Copyright © 2016年 zjw. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
{
    
    NSArray * niu;
    NSArray * nuu;

}
@end

@implementation ViewController

- (void)viewDidLoad {
    
    // Do any additional setup after loading the view, typically from a nib.
  
    niu = @[@"dasdhaskdhal ",
            @"fasbkfkasgfk ",
            @" fas",
            @" sad",
            @" asda",
            @" ",
            @" ",
            @" ",
            @" ",
            
             ];
    UITableView *tableView = [[UITableView alloc]initWithFrame:self.view.bounds style:UITableViewStylePlain];
    
    tableView.dataSource = self;
    
    [self.view addSubview:tableView];
    
    
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{

    return niu.count;


}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    UITableViewCell * cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:nil];
    
    cell.textLabel.text = niu[indexPath.row];
    cell.detailTextLabel.text = @"liu";
    return cell;



}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
